package com.gitee.feizns.webtemplate.commons.upload.service;

import com.gitee.feizns.webtemplate.commons.upload.UploadEvent;
import org.springframework.scheduling.annotation.Async;

/**
 * @author feizns
 * @since 2019/3/22
 */
public interface UploadService {

    /**
     * 异步上传
     * @param event
     */
    @Async
    void async(UploadEvent event);

    /**
     * 同步上传
     * @param event
     */
    void sync(UploadEvent event);

}
